setGlobalDuration(10)

# An original waveform played with amplitude envelope and pitch variation
env = genAdsr()
wave = genWaveform([1,0,0,.3,0,0,.2,0,0,.1,0,.03,0,.01])
lfo(bus='pit', amplitude=.02, frequency=5)
waveform(pitch=500, amplitude=.5, table=wave, envelope=env, pitchVar='pit')
startCsound()
